Skip to content

fix(core): increase cq_issue_code_blocks.component to TEXT#8996

Closed
bramhanandlingala wants to merge 1 commit into
apache:mainfrom
bramhanandlingala:fix/#8993
Closed

fix(core): increase cq_issue_code_blocks.component to TEXT#8996
bramhanandlingala wants to merge 1 commit into
apache:mainfrom
bramhanandlingala:fix/#8993

Conversation

@bramhanandlingala

Copy link
Copy Markdown
Contributor

Summary

cq_issue_code_blocks.component had no explicit type, so GORM
defaulted it to varchar(191) on MySQL. Long SonarQube component
identifiers exceed this, causing data collection to fail with
"Data too long for column 'component'".

Fixed by changing the column to TEXT, matching the same fix
already applied to the sibling cq_issues table. The index is
dropped first since MySQL can't have an index on a TEXT column
without a prefix length.

Closes #8993

@bramhanandlingala

Copy link
Copy Markdown
Contributor Author

@klesh
could you review and merge changes
thanks
Bramhanand Lingala

@klesh klesh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@klesh

klesh commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Duplicate of #8986

@klesh klesh marked this as a duplicate of #8986 Jul 19, 2026
@klesh klesh closed this Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][SonarQube] SonarQube data collection fails due to insufficient size of cq_issue_code_blocks.component column

2 participants